home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K IP Forwarding.xpl < prev    next >
Text File  |  2001-04-26  |  1KB  |  49 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="Network\TCP/IP"
  5. "NAME"="IP Forwarding"
  6. "VERSION"="1.07"
  7. "OSVERSION"="0001011"
  8. "LANGUAGE"="VBScript"
  9. "WARNING"="1"
  10. "TEXT 1"="Enable IP Forwarding for this computer"
  11. "DESCRIPTION 1"="By enabling the first option, Windows will route IP between all available subnets on this computer."
  12. "DESCRIPTION 2"="Please note that this is only a "quick function", for more features install Windows's Routing and Remote Access Services."
  13. "AUTHOR"="Xteq Systems"
  14. "CONTACTURL"="http://www.xteq.com"
  15. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  16. "COMMENT 1"=" "
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23. sP1="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\"
  24. sV1="IPEnableRouter"
  25. Sub Plugin_Initialize 
  26.     i=RegReadValue(sP1 & sV1)
  27.     if i=1 then SetUiElement 1,true 
  28. End Sub
  29.  
  30. Sub Plugin_CheckData(ElementIndex)
  31. End Sub
  32.  
  33. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  34.  If GetUIElement(1)=true then
  35.     Call RegWriteValue(sp1 & sv1,"1",2)
  36.  else
  37.     Call RegWriteValue(sp1 & sv1,"0",2)
  38.  end if
  39.  
  40.  Restart
  41. End Sub
  42.  
  43.  
  44. Sub Plugin_Terminate 
  45. End Sub
  46.  
  47.  
  48.  
  49.